﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DCTEDU_/HeThongMaster.master" AutoEventWireup="true"
    CodeBehind="QLPhanMem.aspx.cs" Inherits="QuanLyThietBi.DCTEDU_.QuanTri.QLPhanMem" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Quản lý Phần mềm</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
<asp:UpdatePanel runat="server" ID="upPanel1"><ContentTemplate>
    <asp:HiddenField runat="server" ID="H_PhongHocId" Value="0" />
    <div class="row">
        <div class="alert alert-danger clearfix">
            <span class="alert-icon"><i class="fa fa-envelope-o"></i></span>
            <div class="notification-info">
                <ul class="clearfix notification-meta">
                </ul>
                <p>
                   
                    1. Chọn phòng máy muốn quản lý danh sách phần mềm;<br />
                    2. Chọn phần mềm để thêm vào trong phòng máy.
                </p>
            </div>
        </div>
        <div class="col-lg-12">
            <div class="border-head">
                <h3>
                    Danh sách phòng máy tính<font color="red"><b><asp:Literal runat="server" ID="litPhong"></asp:Literal></b></font></h3>
            </div>
            <section class="panel">  

            <div class="panel-body">
                 
                 <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>#</th>
                                    <th>Tên phòng</th>
                                    <th>Cán bộ quản lý</th>
                                </tr>
                                </thead>
                                <tbody>
                                <asp:Repeater runat="server" ID="rpPhongHoc" OnItemCommand="rpPhongHoc_ItemCommand"><ItemTemplate>  
                                
                                <tr>
                                    <td><%# Container.ItemIndex + 1%></td>
                                    <td><asp:LinkButton runat="server" ID="cmdSelect" CommandName="Select" CommandArgument='<%# Eval("MaPhong") %>' ><%# Eval("TenPhong") %></asp:LinkButton></td>
                                    <td><%# getTenCanBo(Eval("MaCanBo")) %></td>
                                </tr>      
                                
                                </ItemTemplate></asp:Repeater> 
                                </tbody>
                            </table> 
            </div> 
            </section>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                        <header class="panel-heading">
                            Chọn phần mềm tương ứng
                             <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">         
                        <asp:Button ID="cmdLuu" runat="server" 
                 Style="position: fixed; bottom: 5px;right: 5px; z-index: 999;"
                 Text="Cập nhật" OnClick="cmdLuu_OnClick" CausesValidation="False" CssClass="btn btn-primary btn-image-save" />  
                        <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>#</th>
                                    <th>Tên phần mềm</th>
                                    <th>Dung lượng</th>
                                    <th>Đường dẫn</th> 
                                    <th>Ghi chú</th>
                                </tr>
                                </thead>
                                <tbody>
                                <asp:Repeater runat="server" ID="rpPhanMem" OnItemCommand="rpPhanMem_OnItemCommand">
                                    <ItemTemplate> 
                                    <asp:HiddenField runat="server" ID="H_MaPhanMem" Value='<%# Eval("MaPhanMem") %>'/>     
                                    <tr>
                                    <td><%# Container.ItemIndex + 1%></td> 
                                    <td><asp:ImageButton runat="server" Width="16px" ID="cmdSelect" CommandName="Select" CommandArgument='<%# Eval("MaPhanMem") %>' ImageUrl='<%# getAnh(Eval("MaPhanMem")) ==true? "~/Images/checked_checkbox.png":"~/Images/unchecked_checkbox.png" %>'/> <%# Eval("TenPhanMem") %></td>
                                    <td><%# Eval("DungLuong") %></td> 
                                    <td><%# Eval("DuongDan") %></td>
                                    <td><%# Eval("GhiChu") %></td>  
                                    </tr>
                                    </ItemTemplate>
                                </asp:Repeater> 
                                </tbody>
                        </table>
                        </div>  
            </section>
        </div>
    </div>    
       </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress runat="server" ID="UpdateProgress2" AssociatedUpdatePanelID="upPanel1">
        <ProgressTemplate>
            <div style="top: 20%; right: 50%; transition: all 300ms ease 100ms; color: Black;
                padding: 8px; position: fixed; z-index: 10000">
                <asp:Image runat="server" ID="imgloading" ImageUrl="~/Images/loading.gif" /></div>
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
